package com.xw.entity;

import java.util.Date;

/**
 * @Description: 消息实体类
 * @Author: ASUS
 * @Date: 2024/12/19 9:17
 * @Version: 1.0
 */

public class Message {
    private Long id; // 消息ID
    /**
     * 发送消息类型
     * 1-给指定用户
     * 2-群发包括自己
     * 3-群发不包括自己
     */
    private Integer sendType;
    private String userId; // 用户ID
    private String content; // 消息内容
    private Date createTime; // 创建时间

    // getters and setters
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getSendType() {
        return sendType;
    }

    public void setSendType(Integer sendType) {
        this.sendType = sendType;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}